/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author andrew
 */
public class UserData {
   
    int idUser;
    String email;
    String nameUser;
    

    public UserData() {
        idUser = 0;
        email = "";
    }

    public UserData(int u, String e, String n) {
        idUser = u;
        email = e;
        nameUser = n;
    }
    
    /**
     * Adds a <code>ShoppingCartItem</code> to the <code>ShoppingCart</code>'s
     * <code>items</code> list. If item of the specified <code>product</code>
     * already exists in shopping cart list, the quantity of that item is
     * incremented.
     *
     * @param product the <code>Product</code> that defines the type of shopping cart item
     * @see ShoppingCartItem
     */
    public synchronized void setIDUser(int number) {
        idUser = number;
    }

    public synchronized void setEmail(String mail){
        email = mail;
    }
    
     public synchronized void setNameUser(String nameUser) {
        this.nameUser = nameUser;
    }

    public synchronized String getEmail(){
        return email;
    }
    
    
    public synchronized int getIDUser() { 
        return idUser;
    }
    
    public synchronized String getNameUser() { 
        return nameUser;
    }
    
 
}
